package com.zhao.factoryMethod.factory.impl;

import com.zhao.factoryMethod.factory.AnimalFactory;
import com.zhao.factoryMethod.pojo.Animal;
import com.zhao.factoryMethod.pojo.impl.Dog;

public class DogFactory extends AnimalFactory {
    @Override
    public Animal createAnimal() {
        return new Dog();
    }
}
